﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Colorful.Models
{
    /// <summary>
    /// 微信用户列表
    /// </summary>
    public class WeChatUser : BaseId
    {
        /// <summary>
        /// 微信UnionId
        /// </summary>
        public string UnionId { get; set; }
        /// <summary>
        /// 微信OpenId
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        /// 微信号
        /// </summary>
        public string WeChatId { get; set; }
        /// <summary>
        /// 绑定的公众号Id
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// 用来刷新用户信息
        /// </summary>
        public string RefreshToken { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 姓别
        /// </summary>
        public string Sex { get; set; }
        /// <summary>
        /// 头像地址
        /// </summary>
        public string HeadImgUrl { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string Country { get; set; }
        /// <summary>
        /// 用户特权信息
        /// </summary>
        public List<string> Privilege { get; set; }
        public string SessionId { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime LastLogin { get; set; }
        /// <summary>
        /// 登录时间戳
        /// </summary>
        public long LoginTicks { get; set; }
        /// <summary>
        /// 特殊标记
        /// </summary>
        public int Flag { get; set; }
    }
}
